package com.douya.middleware.property;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.Configuration;

/**
 * middleware配置参数
 *
 * @Author hcy
 * @Date 2022/11/28
 */
@Configuration
@ConfigurationProperties(prefix = "douya.middleware")
@Data
@Accessors(chain = true)
public class DouYaCacheProperties {

    /**
     * redis配置
     */
    @NestedConfigurationProperty
    private RedisProperties redis;

    /**
     * elasticSearch配置
     */
    @NestedConfigurationProperty
    private ElasticSearchProperties elasticSearch;

}